/// Index controller
/// ----------------------------------------------------
/// @Project :   xinhou-rocket-admin
/// @File    :   index_controller.rs
/// @Contact :   sp_hrz@qq.com
/// 
/// @Modify Time      @Author    @Version    @Description
/// ------------      -------    --------    -----------
/// 2024/07/04 17:43   shenpeng   1.0         None

use rocket::get;
use rocket::serde::json::Json;
use crate::extends::core::errors::response_code_enums::ResponseCodeEnum;
use crate::extends::core::response::reponse_data::R;

// Health check route
#[get("/health")]
pub async fn health() -> Json<R<String>> {
    R::success(Some("This server is very healthy!".parse().unwrap()))
}



